package com.jumi.microservice.dto.serviceDto;

import com.jumi.microservice.common.base.dto.BaseRequest;
import io.swagger.annotations.ApiModelProperty;

/**
 * @author wangjingdao
 */
public class UpdateAfterSealStatusRequest extends BaseRequest {
    @ApiModelProperty("订单id")
    private Integer orderId;
    @ApiModelProperty("商品id")
    private Integer goodsId;
    @ApiModelProperty("售后状态: 0-正常 1-已退款 2-退货审核中 3-已退货退款 4-退货退款拒绝 5-补发审核中 6-已补发 7-补发拒绝 8-补偿审核中 9-已补偿 10-补偿拒绝 11-补邮审核中 12-已补邮费 13-补邮拒绝 14-换货申请中 15-换货同意  16-换货拒绝 17-补发漏发审核中 18-已补发漏发 19-补发漏发拒绝")
    private Byte afterSealStatus;

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public Byte getAfterSealStatus() {
        return afterSealStatus;
    }

    public void setAfterSealStatus(Byte afterSealStatus) {
        this.afterSealStatus = afterSealStatus;
    }

    @Override
    public void checkRequest() {
        if (this.afterSealStatus == null || this.goodsId == null || this.orderId == null) {
            try {
                throw new Exception("参数为空");
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    }
}
